﻿#define Expection

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Xml;
using UmcProvider.Controls;
using UmcProvider;

namespace ChinaTelecom.SmartPhone.Controls
{
#if Expection   //if reserve mode
    public interface IDateTimePickerExpection : IUmc
    {
        string Name { get; }
        bool Enabled { get; }
        Size Size { get; }
        Point Location { get; }
        string Text { get; }
        Color BackColor { get; }
        Font Font { get; }
        Color ForeColor { get; }
    }
    public interface IDateTimePicker : IDateTimePickerExtension, IDateTimePickerExpection { }
    [Designer(typeof(UmcDesigner<IDateTimePicker>))]
#else                 //if exclude mode
    //Add the Properties to be excluded here
    [ExcludeProperty]
    public interface IDateTimePickerExculde : IUmc
    {
    }
    public interface IDateTimePicker : IDateTimePickerExtension, IDateTimePickerExculde { }
    [Designer(typeof(UmcDesigner<DateTimePicker>))]
#endif
    //[Designer(typeof(UmcDesigner<ITextBox>))]
    [ToolboxBitmap(typeof(System.Windows.Forms.DateTimePicker), "DateTimePicker.bmp")]
    public sealed class DateTimePicker : System.Windows.Forms.DateTimePicker, IDateTimePicker
    {
    }

    //Add Extension Properties here , and Implement in Inheritance class
    public interface IDateTimePickerExtension
    { 
    }

    //[ExcludePropertyAttribute]
    //public interface IDateTimePicker : IControl
    //{
    //    System.Windows.Forms.DateTimePickerFormat Format { get; set; }
    //}

    public sealed class UmcDateTimePicker : DefaultConverter<UmcDateTimePicker, DateTimePicker>, IDateTimePicker
    {



        #region IDateTimePicker Members

        public System.Windows.Forms.DateTimePickerFormat Format
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }

        #endregion

        #region IUmc Members

        public string Name
        {
            get { throw new NotImplementedException(); }
        }

        #endregion

        #region IControl Members

        public bool Enabled
        {
            get { throw new NotImplementedException(); }
        }

        public Size Size
        {
            get { throw new NotImplementedException(); }
        }

        public Point Location
        {
            get { throw new NotImplementedException(); }
        }

        public string Text
        {
            get { throw new NotImplementedException(); }
        }

        public Color BackColor
        {
            get { throw new NotImplementedException(); }
        }

        public Font Font
        {
            get { throw new NotImplementedException(); }
        }

        public Color ForeColor
        {
            get { throw new NotImplementedException(); }
        }

        #endregion

        
    }
}
